package xml.uidElements;

public class TransitionFromSet{

	private Transition transition;
	private int number;

	public TransitionFromSet(String idTransition, AbstractState targetState) {
		this.transition = new Transition(idTransition, targetState);
		this.setId(idTransition);
		this.setTarget(targetState.getId());
		this.setTargetType("state");

	}

	public TransitionFromSet(String idTransition, String idTargetUIDCall) {
		this.transition = new Transition(idTransition, idTargetUIDCall);
		this.setId(idTransition);
		this.setTarget(idTargetUIDCall);
		this.setTargetType("UID-call");
	}

	public void setNumber(int number) {
		this.number = number;
	}

	public int getNumber() {
		return number;
	}

	public void setId(String id) {
		transition.setId(id);
	}

	public String getId() {
		return transition.getId();
	}

	public void setOption(String option) {
		transition.setOption(option);
	}

	public String getOption() {
		return transition.getOption();
	}

	public void setCondition(String condition) {
		transition.setCondition(condition);
	}

	public String getCondition() {
		return transition.getCondition();
	}

	public void setNoReturn(boolean noReturn) {
		transition.setNoReturn(noReturn);
	}

	public boolean isNoReturn() {
		return transition.isNoReturn();
	}

	public void setTargetType(String targetType) {
		transition.setTargetType(targetType);
	}

	public String getTargetType() {
		return transition.getTargetType();
	}

	public void setTarget(String target) {
		transition.setTarget(target);
	}

	public String getTarget() {
		return transition.getTarget();
	}

}
